/** 组件英文名 */
export const componentName = "Transfer";
/** 组件中文名 */
export const componentNameCh = "穿梭框";
/** 组件schema片段 */
import { uuid } from '../_utils/utils';

export default [
  {
    title: componentNameCh,
    screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/transfer-1.png',
    schema: {
      componentName,
      props: {
        componentName,
        dataSource: [
          {
            key: uuid(),
            title: 'content1',
          },
          {
            key: uuid(),
            title: 'content2',
          },
          {
            key: uuid(),
            title: 'content3',
          },
          {
            key: uuid(),
            title: 'content4',
          },
          {
            key: uuid(),
            title: 'content5',
          },
        ],

        render: {
          type: 'JSFunction',
          value: `function renderItem(record, extParams) {
            return record.title;
          }`,
        },
      },
    },
  },
];
